package com.wntms.ywa.service.impl;

import com.wntms.ywa.dao.ReceiveDao;
import com.wntms.ywa.pojo.CustomerIn;
import com.wntms.ywa.pojo.FreightContract;
import com.wntms.ywa.service.ReceiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class ReceiveServiceImpl implements ReceiveService {
    @Autowired
    private ReceiveDao receiveDao;

    @Override
    public void add(CustomerIn customerIn) {
        receiveDao.add(customerIn);
    }

    @Override
    public FreightContract findById(Integer id) {
        return receiveDao.findById(id);
    }
}
